package com.kum.HomeWork08.entiy;

import java.io.Serializable;
import java.util.Objects;

public class ConnectonDeatail implements Serializable {
    private String studentNO;
    private String courseID;

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        ConnectonDeatail that = (ConnectonDeatail) o;
        return Objects.equals(studentNO, that.studentNO) && Objects.equals(courseID, that.courseID);
    }

    @Override
    public int hashCode() {
        return Objects.hash(studentNO, courseID);
    }

    public  ConnectonDeatail(){

    }

    public ConnectonDeatail(String studentNO,String courseID){
        this.studentNO = studentNO;
        this.courseID = courseID;
    }

    public String getStudentNO() {
        return studentNO;
    }

    public void setStudentNO(String studentNO) {
        this.studentNO = studentNO;
    }

    public String getCourseID() {
        return courseID;
    }

    public void setCourseID(String courseID) {
        this.courseID = courseID;
    }
}
